/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package basiclanguage;

/**
 *
 * @author tandaica0612
 */
public class ThuTuCreateObject {
    class A{
        public A() {
            System.out.println("This is class A");
        }
    }
    class B extends A{
        public B() {
            System.out.println("This is class B");
        }
    }
    class C extends B{
        public C() {
            System.out.println("This is class C");
        }
    }
    public static void main(String args[]){
        ThuTuCreateObject t = new ThuTuCreateObject();
        t.new C();//Tao. doi' tuong. the? hien. lop' A song moi' tao. the? hien. lop' B
    }
}
/*
This is class A
This is class B
This is class C
 * */